package twoRegInstructions;

import java.io.FileNotFoundException;
import java.io.IOException;

import main.MIPSSimulator;


public class Sltiu extends MIPSTwoRegInstruction {
	public Sltiu(String input) throws FileNotFoundException, IOException {
		super(input);
		myName = "sltiu";
	}

	@Override
	public void execute() {
		int regOne = MIPSSimulator.myRegisters.get(myRegisterOne);
		if (regOne < myImmediateValue) {
			MIPSSimulator.myRegisters.put(myRegisterTwo, 1);
		} else {
			MIPSSimulator.myRegisters.put(myRegisterTwo, 0);
		}
	}
}
